home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////
- // Harrow Software 1996
- // Sprite examples
-
- ///////////////////////////
- // (1) - Displaying a sprite
-
- // Firstly the bitmap(s) for the sprite must be loaded. Sprites
- // are drawn without palette remapping so we will need to remap
- // the bitmap to the system palette
-
- load "sprite.gif" bitmap my_bitmap
- remap bitmap my_bitmap
-
- // Next a sprite variable needs to be created
-
- my_sprite = new sprite
-
- // Then the bitmap can be assigned to the sprite at some location
- // on the screen. This instruction only prepares the sprite.
-
- sprite my_sprite bitmap my_bitmap at 0,0
-
- // This instruction draws the sprite. If there were more than one
- // sprite then they would all be drawn at once.
-
- update sprites
-
- //////////////////////////
-
-